package com.study.entity;  


/**  
 *  实体类
 */  
public class Role  
{  
    /********** 实体的属性 ***********/  
     //主键 自增
    private int id;
    private String name;  //名称
    /********** 构造方法 ***********/  
    public Role() {  
      
    }  
  
    public Role(String name) {  
        this.name = name;  
    }  
  
    /********** get/set 方法 ***********/  
    
    public int getId() {
        return id;
    }
    
    public void setId(int id) {
        this.id = id;
    }
    
    public String getName() {  
        return name;  
    }  
  
    public void setName(String name) {  
        this.name = name;  
    }
    
      

	@Override
	public String toString() {
		return "Role [id=" + id 
				+ ", name=" + name
				+ "]";
    }
}